﻿using ArtMath.Resource;
using System;
using System.ComponentModel;
using System.Drawing;
using ArtMath.Data;
using ArtMath.Setting;
using ArtMath.Core.Helper;
using ArtMath.Attribute;
using ArtMath.Core.Data;
using ArtMath.Component.Line;
using ArtMath.Component.Interface;
using ArtMath.Component.Circle;
using ArtMath.PointCollection;

namespace ArtMath.Component.Point
{
    /// <summary>
    /// 定比分点（适用于直角坐标系）
    /// </summary>
    [Serializable]
    public class RProportionatePoint : ProportionatePointBase
    {
        public RProportionatePoint(SketchPad pad, string name, LineBase line, string rate, bool addToList = true) : base(pad, name, ToolTypeName.dbfd, line, rate, addToList)
        {
            CoordinateDisplayer = new PropertyDisplayer(this, Resources.Translate("Coordinate"), "({0}, {1})", "X", "Y");
        }
    }
}
